package models
{
	public class FD
	{
		public function FD(country:String, year:int, category:String, item:String, amount:Number)
		{
			this.year = year;
			
			if (category == "HH") this.category = "Household";
			else if (category == "GOV") this.category = "Government";
			else if (category == "GFCF") this.category = "Gross Fixed Capital Formation";
			else if (category == "TOTAL") this.category = "Total";
			
			this.item = item;
			this.amount = amount;
			
			this.country = country;
		}
		
		public function toString():String
		{
			return "Year: " + year + "; Category: " + category + "; Item: " + item + "; Amount: " + amount;
		}
		
		public var country:String;
		public var year:int;
		public var land_type:String;
		public var category:String;
		public var item:String;
		public var amount:Number;
	}
}